package com.example.springboottest.student.controller;


import com.example.springboottest.student.entity.StudentMajorEntity;
import com.example.springboottest.student.service.StudentMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/major")
public class StudentMajorController {

    @Autowired
    StudentMajorService studentMajorService;

    @RequestMapping("/findAll")
    public List<StudentMajorEntity> findAll(Map map){
        return studentMajorService.findAll(map);
    }
}
